import java.util.PriorityQueue;


class person implements Comparable<person>
{
    int age;

    public person(int age) {
        this.age = age;
    }

    @Override
    public int compareTo(person o) {
        return o.age-this.age;
    }
}


public class text2
{

    public static void main1(String[] args) {
        PriorityQueue<person>a=new PriorityQueue<>();
        a.offer(new person(5));
        a.offer(new person(10));
        a.offer(new person(20));
        System.out.println("ggag");
        //System.out.println(a.poll());

    }
}
